package com.newly.common.base.entity.business.Po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
* @anthor sbq
* @date 2021/12/2 11:23
*/
@Data
@TableName(value = "gov_message")
public class Message implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 消息类型 0-过车触发消息 1-超重预警消息 2-更改日志消息 3-其他
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 0-未读 1-已读
     */
    @TableField(value = "message_status")
    private Integer messageStatus;

    /**
     * 0-正常 1-已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}